package analyzer;

import java.util.ArrayList;
//import java.util.Iterator;
import java.util.List;

public class Consultation {

    private String doctor;
    private List<String> description;

    public Consultation(String doctor) {
        this.doctor = doctor;
        description = new ArrayList<String>(3);
    }

    public void addRecipe(String recipe) {
        description.add(recipe);
    }
    
    @Override
    public Object clone() {
        // TODO Auto-generated method stub
        Consultation cloned = new Consultation(doctor);
        cloned.description = new ArrayList<String>(description);
        return cloned;
    }

    @Override
    public String toString() {
        StringBuilder result = new StringBuilder(10);
        result.append(doctor);

        for (String element : description) {
            result.append("\n");
            result.append(element);
        }

        return result.toString();
    }
}